<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

// 获取当前计数
Route::get('/api/count', 'index/getCount');

// 更新计数，自增或者清零
Route::post('/api/count', 'index/updateCount');
//测试
Route::post('/api/updatedb', 'index/updatedb');
//获取微信令牌，openid 等信息
Route::post('/wxa/openapi', 'app\controller\wxapi\index@index');
Route::post('/api/isreg', 'app\controller\wxapi\index@isReg');
Route::post('/api/getRoomInfo','app\controller\HouseManage@getRoomInfo');
//通过房间ID查找房卡列表
Route::post('/api/getCardListByRoomID','app\controller\RoomCard@getCardListByRoomID');
//获取所有房间
Route::post('/api/getAllRoom','app\controller\HouseManage@getAllRoom');
//登记入住信息
Route::post('/api/checkin','index/checkin');